package org.example.mallweb.mallservice.mybatiscommon.userfollow;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.mallcommon.projo.UserFollow;
import org.example.mallcommon.vio.UserDetailVio;

@Mapper
/**
 * @author 韩先楚
 * 关注Mapper
 */
public interface UserFollowMapper extends BaseMapper<UserFollow> {
    //分页获取我的关注列表
    Page<UserDetailVio> getMyFollowsList(Page<UserDetailVio> userDetailVioPage,@Param("userId") Integer userId);

    //分页获取我的关注列表
    Page<UserDetailVio> getMyFansList(Page<UserDetailVio> userDetailVioPage,@Param("userId") Integer userId);
}
